#ifndef HM_LISTVIEW_H_
#define HM_LISTVIEW_H_

/*
 * William
 * preview container for grid view
*/

#include <html\htmlcontrol.h> 
#include <html\htmlctlevent.h>
#include <html\lirenderer.h>
class CHtmlControl;

class ChmListView : public MListItemRenderer
{
friend class MyDataCenter;	
public:
	ChmListView();
	virtual ~ChmListView();
	void LoadBookCatalog();
	void LoadMyBooks();
	void LoadRemoteBooks();
	void ClearData();

	void ParsePage(CHtmlControl* aHtmlControl);
    void RenderListItemL(CHtmlElement* aElement, TInt aIndex);
    bool HandleHtmlCtlEventL(const THtmlCtlEvent& aEvent);
private:
	int iImageNum;
	int iSelected;
	int iLargeImgOrderId; //正在浏览的大图的索引
	int iRenderList; // 
	
public:	
	CHtmlControl* iControl; //just a pointer
};

#endif /*HM_LISTVIEW_H_*/
